package com.lovo.enums;

import lombok.Getter;

/**
 * @title 学生状态枚举
 * @author: luo
 * @date: 2020/11/20 22:15
 */
@Getter
public enum StudentCodeEnum {

    /**添加学生失败*/
    REGISTER_FAIL(5111,"添加学生失败"),
    /**删除学生失败*/
    FAIL_DELETE_USER(5112,"删除学生失败"),
    /**修改学生失败*/
    FAIL_UPDATE_USER(5113,"修改学生失败"),
    /**查无数据*/
    NO_DATA(5114,"查无数据"),
    /**参数格式错误*/
    PARAMETER_FORMAT_ERROR(5115,"参数格式错误"),
    /**发生未知异常*/
    UNKNOWN_FAIL(9999,"发生未知异常"),
    /**请求方式错误*/
    HTTP_REQUEST_METHOD_NOT_SUPPORTED(5116,"请求方式错误");
    /**状态码*/
    private Integer code;
    /**状态信息*/
    private String msg;


    StudentCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
